public  class Runnable1 implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i <= 1100; i++) {
            System.out.println(i);
            try {
                Thread.sleep(300);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
    }

class test {
    public static void main(String[] args)throws InterruptedException {
         Runnable r = new Runnable1();
         Thread t1 = new Thread(r);
         t1.start();
         Thread t2 = new Thread(r);
         t2.start();
         Thread t3 = new Thread(r);
         t3.start();

         t1.setPriority(1);
         t2.setPriority(10);
         t3.setPriority(5);
    }
}


